﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace StandardDAC {
    public abstract class ConnOrTranInfo {
    }
    public class ConnInfo : ConnOrTranInfo {
        string connectionString;
        public string ConnectionString {
            get { return connectionString; }
        }
        public ConnInfo(string inConnectionString) {
            this.connectionString = inConnectionString;
        }
    }
    public class TranInfo : ConnOrTranInfo {
        DbTransaction transaction;

        public DbTransaction Transaction {
            get { return transaction; }
        }
        public TranInfo(DbTransaction inTransaction) {
            this.transaction = inTransaction;
        }
    }
}
